<br/>Список форумов:&nbsp;<img src="/images/admin/okBut.png" width="20px" title="отметить все" id="selectPartners" style="cursor: pointer"/><br/>
<?php
$cats = array();
foreach ($data as $item) :
    if(!in_array($item['catName'], $cats)) $cats[] = $item['catName'];
endforeach; 
?>  

<?php 
foreach($cats as $c) {
    $i = 0;
    echo '<div style="color:blue">'.$c.':</div>';
    foreach ($data as $item) { 
        if($item['catName'] == $c) {
            if(!++$i % 10) echo '<br/>';
            echo $item['name'];
            echo CHtml::checkBox($modelName.'[partners][]', false, array('value'=>$item['partnerid'].','.$item['catId'], 'style'=>'margin-right:15px', 'class'=>'listPartners'));
        }
    }
}
?>